﻿using Basic.FlowModel.AuditLogItem;
using Basic.FlowRemoteModel;

namespace Basic.FlowModel.AuditLog
{
    public class SaveAuditBody
    {
        public long Id
        {
            get;
            set;
        }
        public FlowAuditStatus AuditStatus { get; set; }

        public FlowAuditLogStatus Status { get; set; }

        public DateTime? EndTime { get; set; }

        public List<AuditLogItemAdd> Adds
        {
            get;
            set;
        }
        public List<AuditLogItemSet> Updates
        {
            get;
            set;
        }
        public bool IsChange { get; set; }
        public Dictionary<long, NodeState> NodeState { get; set; }
        /// <summary>
        /// 进度值
        /// </summary>
        public short ProgressVal { get; set; }

        public bool PChange { get; set; }
        public long? EndEmpId { get; set; }
    }
    public class NodeState
    {
        public FlowNodeAuditStatus Status { get; set; }

        public long? OptItemId { get; set; }

        public FlowNodeAuditStatus PrevStatus { get; set; }
    }
}
